// Generate core namespaces.
var base2Cells = {};
base2Cells.ytplaylist = {};
base2Cells.util = {};

// Create a method to check the namespace.
base2Cells.util.namespace = function(ns) {
    var names = ns.split('.');

    // Initialize
    var name = names[0];
    eval('if (typeof(' + name + ') == "undefined") { ' + name + '= {};}');

    for (var i = 1; i < names.length; i++) {
        name = name + "." + names[i];
        eval('if (typeof(' + name + ') == "undefined") { ' + name +'= {};}');
    }
}
